package com.zf.zfed.audit.action

import androidx.annotation.StringRes
import com.blankj.utilcode.util.ToastUtils

/**
 * @Author: dw
 * @Date: 2024/03/07 9:56
 * @Description: 吐司意图
 */
interface ToastAction {

    fun toast(text: CharSequence?) {
        if (text == null) return
        if (text.isEmpty()) return
        ToastUtils.showShort(text)
    }

    fun toast(@StringRes id: Int) {
        ToastUtils.showShort(id)
    }

}